package com.example.design.strategy;

public class Client {
    public static void main(String[] args) {
        ShoppingCart cart1 = new ShoppingCart(new NoDiscountStrategy());
        System.out.println("Total price with no discount: " + cart1.calculateTotalPrice(100));

        ShoppingCart cart2 = new ShoppingCart(new PercentageDiscountStrategy(20));
        System.out.println("Total price with 20% discount: " + cart2.calculateTotalPrice(100));

        ShoppingCart cart3 = new ShoppingCart(new FixedDiscountStrategy(30));
        System.out.println("Total price with $30% discount: " + cart3.calculateTotalPrice(100));
    }
}
